#ifndef SSTF_H
#define SSTF_H

#include <QWidget>
#include <QWidget>
#include<vector>
#include<QDebug>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QListWidget>
#include <QTableWidget>
#include <QGroupBox>
#include <QPushButton>
#include <QLineEdit>
#include<QLabel>
#include<QString>
#include <QTimer>
#include<Qpainter>
#include<QPixmap>
#include <iostream>
#include<QQueue>
#include <QPropertyAnimation>

typedef struct Bus{
    int position;
    int direction;
    int status;
}bus;

namespace Ui {
class SSTF;
}

class SSTF : public QWidget
{
    Q_OBJECT

public:
    explicit SSTF(QWidget *parent = 0);
    ~SSTF();
    void timerEvent(QTimerEvent *event);
    void TchangArr();
    void CchangArr();
    void UchangArr();
    void paintbus();
    bool eventFilter(QObject *watched, QEvent *event);
    int ShortSearch(QVector<QVector<int> > order);
    void update();
    void shunshizhen();
    void nishizhen();
    void output();

private:
    Ui::SSTF *ui;
};

#endif // SSTF_H
